.class public Lcom/waiqin365/lightapp/diaobodan/b/a/g;
.super Lcom/waiqin365/lightapp/diaobodan/b/c;


# direct methods
.method public constructor <init>(Ljava/lang/String;Lcom/waiqin365/lightapp/diaobodan/c/c;Ljava/lang/String;)V
    .locals 6

    const/16 v0, 0x404

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/diaobodan/b/c;-><init>(I)V

    const-string/jumbo v0, "/app/esss/carsale/client/v2/baoCunDiaoBoDan.action"

    iput-object v0, p0, Lcom/waiqin365/lightapp/diaobodan/b/a/g;->c:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/diaobodan/b/a/g;->e:Ljava/util/HashMap;

    const-string/jumbo v1, "Content-Type"

    const-string/jumbo v2, "application/x-www-form-urlencoded"

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/diaobodan/b/a/g;->e:Ljava/util/HashMap;

    const-string/jumbo v1, "auth-code"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/diaobodan/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.id"

    iget-object v2, p2, Lcom/waiqin365/lightapp/diaobodan/c/c;->a:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/diaobodan/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.token"

    invoke-virtual {v0, v1, p3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/diaobodan/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.from_storehouse_id"

    iget-object v2, p2, Lcom/waiqin365/lightapp/diaobodan/c/c;->c:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/diaobodan/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.to_storehouse_id"

    iget-object v2, p2, Lcom/waiqin365/lightapp/diaobodan/c/c;->f:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/diaobodan/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.modifyTime"

    iget-object v2, p2, Lcom/waiqin365/lightapp/diaobodan/c/c;->u:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/diaobodan/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.emp"

    iget-object v2, p2, Lcom/waiqin365/lightapp/diaobodan/c/c;->o:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/diaobodan/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.date"

    iget-object v2, p2, Lcom/waiqin365/lightapp/diaobodan/c/c;->s:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/diaobodan/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v1, "data.remark"

    iget-object v2, p2, Lcom/waiqin365/lightapp/diaobodan/c/c;->t:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v1, Lorg/json/JSONArray;

    invoke-direct {v1}, Lorg/json/JSONArray;-><init>()V

    iget-object v0, p2, Lcom/waiqin365/lightapp/diaobodan/c/c;->v:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/product/d/d;

    :try_start_1
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V

    const-string/jumbo v4, "id"

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/d/d;->b()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v4, "num"

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/d/d;->g()Ljava/lang/Double;

    move-result-object v5

    invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string/jumbo v4, "input_unit"

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/d/d;->h()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v4, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    invoke-virtual {v1, v3}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    goto :goto_1

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/diaobodan/b/a/g;->d:Ljava/util/HashMap;

    const-string/jumbo v2, "data.products"

    invoke-virtual {v1}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-void

    :catch_1
    move-exception v0

    goto/16 :goto_0
.end method
